<?

foreach ($list_of_events as $event) {
	echo "<h2>" . $event->linkto() . "</h2>\r\n";
	echo "<ul>\r\n";
	$list_of_matches = $event->getTeamMatches($team);
	if (count($list_of_matches) > 0) {
		foreach ($list_of_matches as $match) {
			include "views/mobile_matchrow.php";
		}
	echo "</ul>\r\n";
	} else {
		echo "No Matches yet for " . $event->getName() . ".";
	}
}

?>